default:
	ls

as242:
	cp etc/request.config.242.ts config/request.config.ts
	echo "now 242"

as236:
	cp etc/request.config.236.ts config/request.config.ts
	echo "now 236"

as245:
	cp etc/request.config.245.ts config/request.config.ts
	echo "now 245"

as246:
	cp etc/request.config.246.ts config/request.config.ts
	echo "now 246"

asgray:
	cp etc/request.config.gray.ts config/request.config.ts
	echo "now gray"

asprod:
	cp etc/request.config.prod.ts config/request.config.ts
	echo "now prod"

build:
	npm run build

upload242:
	scp -r dist web@10.0.1.226:/data/web/cms242

upload245:
	scp -r dist web@10.0.1.226:/data/web/cms245/base

upload246:
	scp -r dist web@10.0.1.226:/data/web/cms246

upload236:
	scp -r dist web@10.0.1.226:/data/web/cms236

uploadgray:
	scp -r dist web@10.1.0.123:/data/web/cms

uploadprod:
	ssh web@10.1.0.105 'mkdir /tmp/dist'
	scp -r dist web@10.1.0.105:/tmp
	ssh web@10.1.0.106 'mkdir /tmp/dist'
	scp -r dist web@10.1.0.106:/tmp

release242:
	make as242 && make build && make upload242

release236:
	make as236 && make build && make upload236

release245:
	make as245 && make build && make upload245

release246:
	make as246 && make build && make upload246

releasegray:
	make asgray && make build && make uploadgray

release:
	make asprod && make build && make uploadprod
